package govenor.status;

import java.util.ArrayList;

import networkdescriptor.NetworkDescriptor;

public class FileStored {
	private String filename;
	private ArrayList<NetworkDescriptor> listOfNetworkDescriptors ;
	
	public FileStored(String filename) {
		this.filename = filename;
		this.listOfNetworkDescriptors = new ArrayList<NetworkDescriptor>();
	}
	public void addNetworkDescriptor(NetworkDescriptor nd){
		this.listOfNetworkDescriptors.add(nd);
	}
	public String getFilename() {
		return filename;
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
	public NetworkDescriptor[] getDownloadHosts(){
		NetworkDescriptor[] nds = new NetworkDescriptor[this.listOfNetworkDescriptors.size()];
		return this.listOfNetworkDescriptors.toArray(nds);
	}
	
}
